using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity.ModelConfiguration;

namespace BaseData.Models.Mapping
{
    public class V1_Web_Base_Account_StaffMap : EntityTypeConfiguration<V1_Web_Base_Account_Staff>
    {
        public V1_Web_Base_Account_StaffMap()
        {
            // Primary Key
            this.HasKey(t => t.PkId);

            // Properties
            // Table & Column Mappings
            this.ToTable("V1_Web_Base_Account_Staff");
            this.Property(t => t.PkId).HasColumnName("PkId");
            this.Property(t => t.ParentId).HasColumnName("ParentId");
            this.Property(t => t.SortId).HasColumnName("SortId");
            this.Property(t => t.Name).HasColumnName("Name");
            this.Property(t => t.Pass).HasColumnName("Pass");
            this.Property(t => t.Content).HasColumnName("Content");
            this.Property(t => t.Memo).HasColumnName("Memo");
            this.Property(t => t.FlagClick).HasColumnName("FlagClick");
            this.Property(t => t.FlagClickView).HasColumnName("FlagClickView");
            this.Property(t => t.FlagStatus).HasColumnName("FlagStatus");
            this.Property(t => t.id).HasColumnName("id");
            this.Property(t => t.count).HasColumnName("count");
            this.Property(t => t.level).HasColumnName("level");
            this.Property(t => t.score).HasColumnName("score");
            this.Property(t => t.status).HasColumnName("status");
            this.Property(t => t.total).HasColumnName("total");
            this.Property(t => t.attributes).HasColumnName("attributes");
            this.Property(t => t.children).HasColumnName("children");
            this.Property(t => t.info).HasColumnName("info");
            this.Property(t => t.json).HasColumnName("json");
            this.Property(t => t.msg).HasColumnName("msg");
            this.Property(t => t.rows).HasColumnName("rows");
            this.Property(t => t.state).HasColumnName("state");
            this.Property(t => t.temp).HasColumnName("temp");
            this.Property(t => t.text).HasColumnName("text");
        }
    }
}
